import Vue from 'vue'
import Router from 'vue-router'

var home = resolve => require(['components/home/home.vue'], resolve)
var detail = resolve => require(['components/detail/detail.vue'], resolve)
var sign = resolve => require(['components/sign/sign.vue'], resolve)

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    {
      path: '/sign',
      name: 'sign',
      component: sign
    },
    {
      path:'/detail/:gid',
      name:'detail',
      component: detail
    }
  ]
})
